
#ifndef BOOTLOADER_CONSTDEF_H
#define BOOTLOADER_CONSTDEF_H

#define ERR_FRAME_HEADER 0x01
#define ERR_FRAME_TAIL  0X01<<1
#define ERR_CRC 0X01<<2
#define ERR_CMD 0X01<<3
#define ERR_LOST_FRAME 0X01<<4
#define ERR_ADDR 0X01<<5


#define FRAME_CMD 0x02
#define FRAME_ID 0x04
#define FRAME_DATA 0x08

#define CMD_WRITE 0X00

#define FRAME_LEN  40


#endif //BOOTLOADER_CONSTDEF_H
